package com.secsys.action;

import java.util.Map;

import org.apache.struts2.interceptor.SessionAware;

import com.opensymphony.xwork2.ActionSupport;
import com.secsys.util.Constant;

/**
 * @Description 跳转辅助类
 * @author LiusQ
 * 
 */

public class AssistantForwardAction extends ActionSupport implements SessionAware{
	protected Map<String, Object> session;

	public void setSession(Map<String, Object> session) {
		this.session = session;
	}
	/**
	 * 
	 * @Description 我的话题 
	 * @return
	 * @throws Exception
	 */
	public String myTopic()throws Exception{
		    return null;
	}
	
	
	/**
	 * 
	 * @Description  控制面板首页跳转
	 * @return
	 * @throws Exception
	 */
	public String controlIndex()throws Exception{
		System.out.println("123");
		System.out.println(session);
		      session.put("titleURL", Constant.INIT_CONTROL);  
		return "forWard";
	}
	/**
	 * 
	 * @Description 编辑个人信息
	 * @return
	 * @throws Exception
	 */
	public String editorUserInfo()throws Exception{
		  session.put("titleURL", Constant.EDITOR_USER_INFO);
		  return "forWard";
		
	}
	
	/**
	 * 
	 * @Description 帮助信息页面跳转
	 * @return
	 * @throws Exception
	 */
	public String helpMsg()throws Exception{
		 session.put("titleURL", Constant.HELP_MSG_PAG);
		 return "forWard";
		
	}
	
	public String msgQuery()throws Exception{
		session.put("titleURL", Constant.MESSAGE_PAGE);
		 return "forWard";
		
	}
	
	public String postList()throws Exception{
		 session.put("titleURL", Constant.MY_POST_QUERY);
		 return "forWard";
	}
	
	
}
